package reflect;

import java.lang.reflect.Method;

public class ReflectDemo5 {
    public static void main(String[] args) throws Exception {
        Class<?> c = Class.forName("reflect.Person");
        Object obj = c.newInstance();
        Method method = c.getMethod("say", String.class, int.class);
        method.invoke(obj, "!!", 7);
    }
}
